<?php
/* @var $this SiteController */
$this->pageTitle=Yii::app()->name;
$this->breadcrumbs=array(
		'Конфигурации'
);
$this->menu=array(
		array('label'=>'Сохранить', 'url'=>'#', 'itemOptions' => array ('class' => 'saveForm' ) ),
);
?>

<h1>Конфигурации</h1>
<div class="form">
<?php if(Yii::app()->user->hasFlash('success')): ?>
	<div class="flash-success">
		<?php echo Yii::app()->user->getFlash('success'); ?>
	</div>
<?php endif; ?>
<?php if(Yii::app()->user->hasFlash('error')): ?>
	<div class="flash-error">
		<?php echo Yii::app()->user->getFlash('error'); ?>
	</div>
<?php endif; ?>
<?php $form=$this->beginWidget('CActiveForm'); ?>
	
	<p class="note">Поля с <span class="required">*</span> должны быть заполнены.</p>
	
	<?php foreach($model as $key => $value):?>
		<div class="row">
			<label class="required" for="<?php echo $key;?>" >
				<?php echo isset($legend[$key]) ? $legend[$key] : $key; ?> 
				<span class="required">*</span>
			</label>
			<input type="text" id="<?php echo $key;?>" name="<?php echo $key;?>" value="<?php echo $value;?>"/>
		</div>
	<?php endforeach;?>

<?php $this->endWidget(); ?>

</div><!-- form -->
